home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 2 / Gold Medal Software Volume 2 (Gold Medal) (1994).iso / bbsutils / tb502man.arj / P91 < prev    next >
Text File  |  1994-02-13  |  2KB  |  58 lines

  1.  
  2.  
  3.  
  4.  
  5.      The TriBBS Bulletin Board System                                    91
  6.  
  7.                                 
  8.                             EXTENDABLE MENU COMMANDS
  9.                             ------------------------
  10.  
  11.      TriBBS allows the sysop to easily extend the Main Menu, the Message
  12.      Menu, the File Menu, and the Sysop Menu through the use of doors and
  13.      batch files.  The first step in extending a menu is to add the new
  14.      command's hotkey character, description, and security level to the
  15.      desired menu.  For example, let's suppose you wanted to add TriMail to
  16.      your Message Menu.  The following is a sample Message Menu with
  17.      TriMail added to it:
  18.  
  19.      ----------------------------------------------------------------------
  20.  
  21.      7,0,2,15
  22.      C,C,Change Conference,10
  23.      E,E,Enter a Message,10
  24.      R,R,Read Messages,10
  25.      N,N,New Messages,10
  26.      Y,Y,Your Messages,10
  27.      S,S,Text Search Messages,10
  28.      Q,Q,Set Conference Queue,10
  29.      T,T,TriMail,10
  30.      M,M,Main Menu,0
  31.      X,X,Expert Mode,10
  32.      P,P,Page Sysop,0
  33.      G,G,Goodbye,0
  34.  
  35.      ----------------------------------------------------------------------
  36.  
  37.      As the above sample Message Menu shows, the new command's hardcoded
  38.      and configurable hotkey is "T", its description is "TriMail", and its
  39.      security level is "10".  You should note that a custom menu option's
  40.      hardcoded hotkey can be any key expect one of the hardcoded hotkeys
  41.      that TriBBS uses internally for the menu.  The configurable hotkey can
  42.      be any key that isn't being used by another command.
  43.  
  44.      The next step to get the custom menu command functioning is to create
  45.      a batch file that TriBBS will call to carry out the command.  The
  46.      filename must be MAINh.BAT (where "h" is the hardcoded hotkey) for a
  47.      custom Main Menu command, MESSh.BAT (where "h" is the hardcoded
  48.      hotkey) for a custom Message Menu command, FILEh.BAT (where "h" is the
  49.      hardcoded hotkey) for a custom File Menu command, or SYSh.BAT (where
  50.      "h" is the hardcoded hotkey) for a custom Sysop Menu command.  So for
  51.      our example TriMail Message Menu command, the proper batch file name
  52.      would be MESST.BAT and could be a batch file similar to the following:
  53.  
  54.  
  55.  
  56.  
  57.  
  58.